import * as types from './mutation-types'

export default{

    [types.choosebooks](state,id){
        state.books_id=id;
        
    },
    [types.choosequestions](state,id){
        state.questions_id=id;
    },
    [types.changeStyle](state,to){
        if(to>state.now){
            state.transitionName="slideRight"
        }
        if(to<state.now){
            state.transitionName="slideLeft"
        }
        state.now=to;
    },
    [types.changeBtn](state){
        state.btn=!state.btn;

    }


}